package com.ruoyi.system.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生对象 edu_student
 * 
 * @author ruoyi
 * @date 2024-03-18
 */
public class EduStudent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学生ID */
    private Long studentId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String studentName;

    /** 学号 */
    @Excel(name = "学号")
    private String studentCode;

    /** 班级 */
    @Excel(name = "班级")
    private Long klassId;

    private EduKlass klass;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 籍贯 */
    @Excel(name = "籍贯")
    private Long regionId;

    private EduRegion region;

    public EduRegion getRegion() {
        return region;
    }

    public void setRegion(EduRegion region) {
        this.region = region;
    }

    public EduKlass getKlass() {
        return klass;
    }

    public void setKlass(EduKlass klass) {
        this.klass = klass;
    }

    /** 家庭成员信息 */
    private List<EduRelative> eduRelativeList;

    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setStudentName(String studentName) 
    {
        this.studentName = studentName;
    }

    public String getStudentName() 
    {
        return studentName;
    }
    public void setStudentCode(String studentCode) 
    {
        this.studentCode = studentCode;
    }

    public String getStudentCode() 
    {
        return studentCode;
    }
    public void setKlassId(Long klassId) 
    {
        this.klassId = klassId;
    }

    public Long getKlassId() 
    {
        return klassId;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setRegionId(Long regionId) 
    {
        this.regionId = regionId;
    }

    public Long getRegionId() 
    {
        return regionId;
    }

    public List<EduRelative> getEduRelativeList()
    {
        return eduRelativeList;
    }

    public void setEduRelativeList(List<EduRelative> eduRelativeList)
    {
        this.eduRelativeList = eduRelativeList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("studentId", getStudentId())
            .append("studentName", getStudentName())
            .append("studentCode", getStudentCode())
            .append("klassId", getKlassId())
            .append("sex", getSex())
            .append("regionId", getRegionId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("eduRelativeList", getEduRelativeList())
            .toString();
    }
}
